'use strict';

const Controller = require('egg').Controller;

class DidiTaixController extends Controller {
  async index() {
    const { ctx } = this;
    let code = ctx.request.query.code;
    let phone = ctx.request.query.phone;
    let channel = ctx.request.query.channel;
    let body = await ctx.service.diditaix.doService({code:code,phone:phone,channel:channel});
    ctx.body =  body;
  }
}

module.exports = DidiTaixController;